package com.h3c.nem.task;

import com.h3c.nem.service.ITbTeacherService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component
@JobHandler(value = "noticeLeaderCertificateHandler")
public class NoticeLeaderToCertificateHandler extends IJobHandler {

    @Resource
    ITbTeacherService tbTeacherService;

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        log.info("noticeLeaderCertificateHandler start");
        tbTeacherService.autoInfoLeaderToCertificate();
        log.info("noticeLeaderCertificateHandler end");
        return SUCCESS;
    }
}
